Method ResolveSegmentAsync(long, string, long?, CancellationToken)
The metadata row of one path segment: a root field of the scheme (parentStructureId null) or
a field of the class or array element parentStructureId. Cached per domain with the same
lifetime as the resolved fields, so GroupByArray, which walks its path segment by segment, reads each segment
from the database once. Null when there is no such field.
public Task<SchemeMetadataCacheRow?> ResolveSegmentAsync(long schemeId, string name, long? parentStructureId, CancellationToken cancellationToken = default)